package com.atguigu.spzx.product.service;

import com.atguigu.spzx.model.dto.h5.ProductSkuDto;
import com.atguigu.spzx.model.entity.product.ProductSku;
import com.atguigu.spzx.model.vo.h5.ProductItemVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * ClassName: ProductService
 * Package:
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/5/22 9:24
 * Version 1.0
 */
public interface ProductService {
    //2  根据销量排序，获取前十条记录
    List<ProductSku> selectProductSkuBySal();

    //分页查询商品
    PageInfo<ProductSku> findByPage(Integer page, Integer limit, ProductSkuDto productSkuDto);

    //商品详情接口
    ProductItemVo item(Long skuId);

    //根据skuId获取sku信息
    ProductSku getBySkuId(Long skuId);
}
